<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="/tpshop/Public/common/js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
		<style type="text/css">
			.left div{
				display: none;
			}
		</style>
		<script type="text/javascript">
			$(function(){
				
				
			});
		</script>
	</head>
	<body>
		<header>
			<div>
				<ul>
					<li><a href="">清除缓存</a></li>
					<li>
						<a href="">后台管理</a>
						<ul>
							<li><a href="">Admin</a></li>
							<li><a href="">修改密码</a></li>
							<li><a href="">前台首页</a></li>
							<li><a href="">退出</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</header>
		
		<!--内容区域-->
		<div class="main">
			<div class="left">
				<h2 id="Admin">管理员管理</h2>
				<div class="item">
					<p><a href="<?php echo U('Admin/index');?>">管理员列表</a></p>
				</div>
				
				<h2 id="User">用户管理</h2>
				<div class="item">
					<ul>
						<li><a href="<?php echo U('User/index');?>">用户列表</a></li>
					</ul>
				</div>
				
				<h2 id="User">分类管理</h2>
				<div class="item">
					<ul>
						<li><a href="<?php echo U('Types/index');?>">分类列表</a></li>
					</ul>
				</div>
				
				<h2 id="User">系统管理</h2>
				<div class="item">
					<ul>
						<li><a href="<?php echo U('Sys/index');?>">系统配置</a></li>
						<li><a href="<?php echo U('Sys/lunbo_list');?>">轮播图列表</a></li>
					</ul>
				</div>
			</div>
			
			<div class="right">
				
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			$(function(){
				$('#ups').change(function(){
					var form = $('#lunbo_form')[0];
					var formdata1 = new FormData(form);
					
					$.ajax({  
				        type : "post",  
				        url : "<?php echo U('ajax_up');?>",  
				        data : formdata1,
				        async: false,  
				        cache: false,  
				        contentType: false,  
				        processData: false,
				        success : function(data) {  
				            if(data){
				            	//alert('提交成功！');
				            	$('#img_post').val(data);
				            	var img = "<img width='200' height='200' src='/tpshop/Uploads/" + data + "' />";
				            	$('.img').html(img);
				            } 
				        }  
					}); 
				});
				
					
			});
		</script>
	</head>
	<body>
		<form id="lunbo_form" action="" method="post">
			TITLE:<input type="text" name="" value="<?php echo C('TITLE');?>" />
			KEYWORDS:<input type="text" name="" value="<?php echo C('KEYWORDS');?>" />
			DESCRIPT:<input type="text" name="" value="<?php echo C('DESCRIPT');?>" />
			LOGO:
			
			<input type="hidden" name="LOGO" id="img_post" value="<?php echo C('LOGO');?>" />
			<input type="hidden" name="old_logo" value="<?php echo C('LOGO');?>" />
			<div class="img">
				<img width='200' height='200' src="/tpshop/Uploads/<?php echo C('LOGO');?>"/>
			</div>
			
			<input type="file" value="" id="ups" />
			
			BANQUAN:<input type="text" name="" value="<?php echo C('BANQUAN');?>" />
			<input type="submit" value="提交"/>
			<input type="reset" value="重置" />
		</form>
	</body>
</html>

			</div>
			
		</div>
			
	</body>
	<script type="text/javascript">
		$(".left h2").click(function(){
			$(this).next().toggle(300);
			$('.left div').not($(this).next()).hide(300);
//					$(".item ul").hide();
//					$(this).parent().next().toggle(500);
				});
				var cName = "<?php echo (CONTROLLER_NAME); ?>";
				$("#" + cName).click();
	</script>
</html>